package com.ta.gulimall.order.feign;

import com.ta.gulimall.common.utils.system.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 查询会员下的收货地址
     * @param userId
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/deliveryAddress")
    R deliveryAddress(@RequestParam("userId") Long userId);

    /**
     * 地址Id查询地址详情
     * @param addrId
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/deliveryAddressById")
    R deliveryAddressById(@RequestParam("addrId") Long addrId);
}
